package com.maiji.cloud.controller.community;


import com.maiji.cloud.controller.BaseController;
import com.maiji.cloud.request.BaseInputDto;
import com.maiji.cloud.request.community.ComReportInputDto;
import com.maiji.cloud.response.BaseOutPutDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2019-12-09
 */
@RestController
@RequestMapping("/community")
@Api(tags = {"社区"})
public class ComReportController extends BaseController {


    @PostMapping("/report")
    @ApiOperation("动态举报")
    public BaseOutPutDto<String> report(@RequestBody BaseInputDto<ComReportInputDto> inputDto, @RequestHeader("maijiToken")String maijiToken){

        return postForObjectWithToken(maijiToken, REST_URL_PREFIX_COMMUNITY + "/community/report", inputDto, BaseOutPutDto.class);
    }

}

